home *** CD-ROM | disk | FTP | other *** search
/ PC Format (UK) 86 / PC_Format_September1998_Issue86.iso / Tech / DIRECTOR / data.z / Stream-GeoFacts.dir / Scripts_23_Net Hold Until Frame Ready.ls < prev    next >
Encoding:
Text File  |  1997-05-10  |  1.8 KB  |  45 lines

  1. property useframes, frameA, frameB, markA, markB, singleframe
  2.  
  3. on beginSprite me
  4.   set singleframe to 0
  5.   if useframes = #useframes then
  6.     if frameB <= frameA then
  7.       set singleframe to 1
  8.     end if
  9.   else
  10.     set frameA to marker(markA)
  11.     set frameB to marker(markB)
  12.     if frameB <= frameA then
  13.       set singleframe to 1
  14.     end if
  15.   end if
  16. end
  17.  
  18. on prepareFrame me
  19.   cursor([17, 18])
  20.   if singleframe then
  21.     if not frameReady(frameA) then
  22.       go(marker(0))
  23.     else
  24.       cursor(-1)
  25.       go(marker(1))
  26.     end if
  27.   else
  28.     if not frameReady(frameA, frameB) then
  29.       go(marker(0))
  30.     else
  31.       cursor(-1)
  32.       go(marker(1))
  33.     end if
  34.   end if
  35. end
  36.  
  37. on getPropertyDescriptionList
  38.   set p_list to [#useframes: [#comment: "Syntax:", #format: #symbol, #range: [#useframes, #UseMarkers], #default: #useframes], #frameA: [#comment: "Begin Frame:", #format: #integer, #default: 1], #frameB: [#comment: "End Frame:", #format: #integer, #default: 1], #markA: [#comment: "Begin Marker:", #format: #marker, #default: 1], #markB: [#comment: "End Marker:", #format: #marker, #default: 1]]
  39.   return p_list
  40. end
  41.  
  42. on getBehaviorDescription
  43.   return "Holds on the current frame using Go the Frame, until media in the specified frame range is loaded.  If End Frame is less than or equal to Begin Frame, only checks Begin Frame.  If desired, marker names can be used.  If the End Marker occurs before the Begin Marker, only the frame marked with Begin Marker is checked." & RETURN & "PARAMETERS:" & RETURN & "ΓÇóSyntax - Deterimines whether frame range is specified with frame numbers or marker labels." & RETURN & "ΓÇó Begin Frame - First frame to check if ready." & RETURN & "ΓÇó End Frame - Last Frame to check if ready." & RETURN & "ΓÇó Begin Marker - Marker label of first frame to check." & RETURN & "ΓÇó End Marker - Marker label of last frame to check."
  44. end
  45.